package huanzhao.erp.domain.enumerate.error;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author April
 * 2024/9/22 12:02
 * @version 1.0
 */
@Getter
@AllArgsConstructor
public enum AccountError implements BaseErrorCode {
    REGISTRATION_ERROR(200, "用户注册错误"),

    USERNAME_ALREADY_EXISTS(201, "用户名已存在"),
    ACCOUNT_NOT_FOUND(202, "用户账户不存在"),
    LOGIN_ERROR(203, "用户登录异常"),
    ACCOUNT_FROZEN(204, "用户账户被冻结"),
    ACCOUNT_DEACTIVATED(205, "用户账户已作废"),
    LOGIN_EXPIRED(206, "用户登录已过期");
    private final int code;
    private final String message;
}
